using DDD.Framework;
using NUnit.Framework;

namespace Specifications.DDD.Framework.DomainObjectSpecs
{
    [TestFixture]
    public class WhenCreatingADomainObject
    {
        [Test]
        public void ShouldNotBeAbleToInstantiateDomainObjectDirectly()
        {
            bool isDomainObjectAbstract = typeof (DomainObject).IsAbstract;
            Assert.IsTrue(isDomainObjectAbstract, "Cannot directly instantiate an abstract object.");
        }
    }
}